using Microsoft.Extensions.DependencyInjection;

using Swashbuckle.AspNetCore.SwaggerGen;

namespace WL.Think.Abp.Extensions;

public static class SwaggerGenOptionsExtension
{
    /// <summary>
    /// 隐藏 Abp 相关的 schemas
    /// </summary>
    /// <param name="options"></param>
    public static void HideAbpSchemas(this SwaggerGenOptions options)
    {
        options.SchemaFilter<HideAbpSchemaFilter>();
    }   
}